import request from '@/utils/request'

// 欧英代列表
export function queryTradeAgentList(data) {
  return request({
    url: '/v1/base/trade-agent/list',
    method: 'POST',
    data
  })
}

// 创建欧英代记录
export function createTradeAgent(data) {
  return request({
    url: '/v1/base/trade-agent/create',
    method: 'POST',
    data
  })
}

// 修改欧英代记录
export function editTradeAgent(data) {
  return request({
    url: '/v1/base/trade-agent/edit',
    method: 'POST',
    data
  })
}

// 欧英代记录详情
export function getTradeAgentDetail(data) {
  return request({
    url: '/v1/base/trade-agent/detail',
    method: 'POST',
    data
  })
}

// 删除欧英代记录
export function deleteTradeAgent(data) {
  return request({
    url: '/v1/base/trade-agent/delete',
    method: 'POST',
    data
  })
}

// 欧英代日志
export function getTradeAgentLog(data) {
  return request({
    url: '/v1/base/trade-agent/log',
    method: 'POST',
    data
  })
}



// 进口商列表
export function queryImporterList(data) {
  return request({
    url: '/v1/base/importer/list',
    method: 'POST',
    data
  })
}

// 创建进口商记录
export function createImporter(data) {
  return request({
    url: '/v1/base/importer/create',
    method: 'POST',
    data
  })
}

// 修改进口商记录
export function editImporter(data) {
  return request({
    url: '/v1/base/importer/edit',
    method: 'POST',
    data
  })
}

// 删除进口商记录
export function deleteImporter(data) {
  return request({
    url: '/v1/base/importer/delete',
    method: 'POST',
    data
  })
}

// 进口商记录详情
export function getImporterDetail(data) {
  return request({
    url: '/v1/base/importer/detail',
    method: 'POST',
    data
  })
}

